import request from '@/utils/request'

export function noticeList(data) {
  return request({
    url: '/notice',
    method: 'get',
    params: data
  })
}
export function deleteNotice(id) {
  return request({
    url: '/notice/' + id,
    method: 'delete'
  })
}
export function updataNotice(data) {
  return request({
    url: '/notice/update',
    method: 'post',
    data
  })
}
export function detailNotice(id) {
  return request({
    url: '/notice/' + id,
    method: 'get'
  })
}
export function createNotice(data) {
  return request({
    url: '/notice',
    method: 'post',
    data
  })
}
